package com.shop.cereshop.business.dao.business;

import com.shop.cereshop.business.page.shop.PlatformBusiness;
import com.shop.cereshop.business.page.user.Business;
import com.shop.cereshop.business.param.user.BusinessGetAllUser;
import com.shop.cereshop.commons.domain.business.CerePlatformBusiness;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CerePlatformBusinessDAO {
    int deleteByPrimaryKey(Long businessUserId);

    int insert(CerePlatformBusiness record);

    int insertSelective(CerePlatformBusiness record);

    CerePlatformBusiness selectByPrimaryKey(Long businessUserId);

    int updateByPrimaryKeySelective(CerePlatformBusiness record);

    int updateByPrimaryKey(CerePlatformBusiness record);

    PlatformBusiness findByUserName(@Param("username") String username);

    CerePlatformBusiness findByToken(@Param("token") String token);

    void updateToken(CerePlatformBusiness cerePlatformBusiness);

    List<CerePlatformBusiness> getAll(BusinessGetAllUser param);

    CerePlatformBusiness checkUserName(@Param("username") String username,@Param("businessUserId") Long businessUserId);

    Business getById(@Param("businessUserId") Long businessUserId);
}